<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:73:"D:\phpStudy\WWW\thinkphp5\public/../app1/index\view\index\postdetail.html";i:1488962028;}*/ ?>
<div>
	<form action="/index/index/postdetail" method="post">
		id: <input name="id" value="<?php echo $id; ?>" /> <input type="submit" value="搜索">
	</form> 
	<table border="1" style="border-collapse: collapse"  >
		<tr>
			<th>title</th>
			<th>content</th>
			<th>create_time</th>
			<th>操作</th>
		</tr>
		<?php if(is_array($list) || $list instanceof \think\Collection): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$post): $mod = ($i % 2 );++$i;?>
		<tr>
				<input type='hidden' name='id' value=<?php echo $post['id']; ?>>
				<td><input type='text' name='title' id='title-<?php echo $post['id']; ?>' value=<?php echo $post['title']; ?>></td>
				<td><input type='text' name='content' id='content-<?php echo $post['id']; ?>' value=<?php echo $post['content']; ?>></td>
				<td><?php echo $post['create_time']; ?></td>
				<td><input type='button' onclick='postEdit(this)' data-id="<?php echo $post['id']; ?>"  value='修改信息'>
					<input type='button' onclick="postDelete(this)" data-id="<?php echo $post['id']; ?>" data-pid="<?php echo $post['pid']; ?>" value="删除操作"></td>
		</tr>
		<?php endforeach; endif; else: echo "" ;endif; ?>
		
    </table>
	<input type="hidden" name='id' id='id' value='<?php echo $id; ?>' /> <input
		type='text' name='content' id='relaycontent' value='回帖内容' /><input
		type='button' onclick="postreply()" value='回帖' />
</div>


<script src="/js/postdetail.js"></script>
<?php echo $page; ?>
<div id='reply' ></div>

